PUT
/
contacts
/
{id}
cURL
curl --request PUT \
  --url https://app.masivo.ai/api/storefront/v1/contacts/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-account-id: <x-account-id>' \
  --data '{
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "deleted_at": "2023-11-07T05:31:56Z",
  "external_id": "<string>",
  "persona_id": "<string>",
  "first_name": "<string>",
  "second_name": "<string>",
  "last_name": "<string>",
  "second_last_name": "<string>",
  "email": "jsmith@example.com",
  "email_verified": false,
  "dob": "2023-12-25",
  "gender": "MALE",
  "country": "<string>",
  "city": "<string>",
  "phone": "<string>",
  "is_anonymous": false,
  "source": "<string>",
  "channel": "<string>",
  "phone_verified": false,
  "document_type": "<string>",
  "document_number": "<string>",
  "status": "ACTIVE",
  "tags": {},
  "addresses": [
    {
      "street_1": "<string>",
      "street_2": "<string>",
      "street_number": "<string>",
      "reference": "<string>",
      "alias": "<string>",
      "zip_code": "<string>",
      "city": "<string>",
      "state": "<string>",
      "country": "<string>"
    }
  ],
  "billing_info": [
    {
      "document_number": "<string>",
      "document_type": "<string>",
      "legal_name": "<string>",
      "alias": "<string>",
      "street_1": "<string>",
      "street_2": "<string>",
      "street_number": "<string>",
      "city": "<string>",
      "state": "<string>",
      "country": "<string>",
      "zip_code": "<string>",
      "phone": "<string>",
      "email": "<string>"
    }
  ],
  "payments": [
    {
      "method": "CREDIT",
      "last_four": "<string>",
      "card_holder": "<string>",
      "card_brand": "<string>",
      "alias": "<string>",
      "expiry_month": 123,
      "expiry_year": 123
    }
  ]
}'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "deleted_at": "2023-11-07T05:31:56Z",
      "persona_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "external_id": "<string>",
      "first_name": "<string>",
      "second_name": "<string>",
      "last_name": "<string>",
      "second_last_name": "<string>",
      "email": "jsmith@example.com",
      "email_verified": false,
      "dob": "2023-12-25",
      "gender": "MALE",
      "country": "<string>",
      "city": "<string>",
      "phone": "<string>",
      "is_anonymous": false,
      "source": "<string>",
      "channel": "<string>",
      "phone_verified": false,
      "document_type": "<string>",
      "document_number": "<string>",
      "status": "ACTIVE",
      "tags": {},
      "addresses": [
        {
          "street_1": "<string>",
          "street_2": "<string>",
          "street_number": "<string>",
          "reference": "<string>",
          "alias": "<string>",
          "zip_code": "<string>",
          "city": "<string>",
          "state": "<string>",
          "country": "<string>"
        }
      ],
      "billing_info": [
        {
          "document_number": "<string>",
          "document_type": "<string>",
          "legal_name": "<string>",
          "alias": "<string>",
          "street_1": "<string>",
          "street_2": "<string>",
          "street_number": "<string>",
          "city": "<string>",
          "state": "<string>",
          "country": "<string>",
          "zip_code": "<string>",
          "phone": "<string>",
          "email": "<string>"
        }
      ],
      "payments": [
        {
          "method": "CREDIT",
          "last_four": "<string>",
          "card_holder": "<string>",
          "card_brand": "<string>",
          "alias": "<string>",
          "expiry_month": 123,
          "expiry_year": 123
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-account-id
string<uuid>
required

Your account ID

Path Parameters

id
string<uuid>
required

Contact unique identifier

Body

application/json
created_at
string<date-time>

Contact creation timestamp

updated_at
string<date-time>

Contact last update timestamp

deleted_at
string<date-time> | null

Contact deletion timestamp (soft delete)

external_id
string | null

External contact ID

persona_id
string | null

Persona ID for unified contacts

first_name
string | null

Contact first name

second_name
string | null

Contact second name

last_name
string | null

Contact last name

second_last_name
string | null

Contact second last name

email
string<email>

Contact email address

email_verified
boolean
default:false

Whether the email is verified

dob
string<date> | null

Date of birth (YYYY-MM-DD)

gender
enum<string> | null

Contact gender

Available options:
MALE,
FEMALE
country
string | null

Contact country

city
string | null

Contact city

phone
string | null

Contact phone number

is_anonymous
boolean
default:false

Whether the contact is anonymous

source
string | null

Contact source

channel
string | null

Contact channel

phone_verified
boolean
default:false

Whether the phone is verified

document_type
string | null

Document type

document_number
string | null

Document number

status
string
default:ACTIVE

Contact status

tags
object | null

Custom tags

addresses
object[] | null

Contact addresses

billing_info
object[] | null

Billing information

payments
object[] | null

Payment information

Response

Contact updated successfully

data
object[]

Array containing the updated contact